
login_url="http://comsciubu.ning.com/main/authorization/doSignIn?target=http%3A%2F%2Fcomsciubu.ning.com%2F"
email=""
password=""
xg_token=""


curl --cookie /tmp/ning-cookie.txt --cookie-jar /tmp/ning-cookie.txt \
--user-agent Mozila/5.0 \
--data "emailAddress=$email" --data "password=$password" --data "xg_token=$xg_tokey" \
"$login_url"


data=`curl --cookie /tmp/ning-cookie.txt --cookie-jar /tmp/ning-cookie.txt \
"http://comsciubu.ning.com" 2> /dev/null`

echo "$data" > ning-login.html



